package com.qjc.demo.strategyAndFactory.service.impl;

import com.qjc.demo.strategyAndFactory.enums.StrategyEnum;
import com.qjc.demo.strategyAndFactory.service.IStrategyService;
import org.springframework.stereotype.Service;

/**
 * 策略一实现类
 *
 * @ClassName: StrategyOneServiceImpl
 * @Author: qjc
 * @Date: 2023/5/9 17:43
 */
@Service
@StrategyType(StrategyEnum.TWO_STRATEGY)
public class StrategyTwoServiceImpl implements IStrategyService {
    @Override
    public String testStrategy() {
        return "策略二";
    }
}
